package com.wo.android.pockybill.ui;

import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.AdapterView.OnItemClickListener;

import com.wow.wa.ui.ItemDialog;

public class BillItemDialog extends ItemDialog implements OnItemClickListener {

	public BillItemDialog(String titleName, Context context, String[] title,
			Button btn) {
		super(titleName, context, title, btn);
		super.setOnItemClickListener(this);
	}

	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		this.getBnt().setText(getTitles()[arg2]);
		this.hide();

	}
}
